
def print_which_system_1():
    '''
    打印当前系统
    '''
    import platform

    system = platform.system()
    if system == "Windows":
        print("当前系统是Windows")
    elif system == "Linux":
        print("当前系统是Linux")
    elif system == "Darwin":
        print("当前系统是Mac OS")
    else:
        print("当前系统是其他操作系统")

def print_which_system_2():
    '''
    打印当前系统
    '''
    import sys

    if sys.platform.startswith("win"):
        print("当前系统是Windows")
    elif sys.platform.startswith("linux"):
        print("当前系统是Linux")
    elif sys.platform.startswith("darwin"):
        print("当前系统是Mac OS")
    else:
        print("当前系统是其他操作系统")